/**
* 版权声明：厦门睿商网络科技有限公司 版权所有 违者必究
* 日    期：2020-05-27
*/
package com.rzico.basics.entity;

import lombok.Data;
import java.util.Date;
import javax.persistence.*;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * <pre>
 *   页面管理数据库对象
 * </pre>
 * @author Rzico Boot
 * @version 1.0
 */
@Data
@JsonIgnoreProperties(value = {"handler"})
@JsonInclude(JsonInclude.Include.NON_NULL)
@Table(name = "wx_page")
public class WxPage{
    @Id
    @ApiModelProperty(value = "" )
    protected Long id;

    @ApiModelProperty(value = "")
    protected Integer orders;

    @ApiModelProperty(value = "创建日期" )
    protected java.util.Date createDate;

    @ApiModelProperty(value = "修改日期" )
    protected java.util.Date modifyDate;

    @ApiModelProperty(value = "缩略图" )
    protected String thumbnial;

    @ApiModelProperty(value = "背景色" )
    protected String backgroundColor;

    @ApiModelProperty(value = "分享图" )
    protected String shareImage;

    @ApiModelProperty(value = "分享描述" )
    protected String shareDescr;

    @ApiModelProperty(value = "页面名称" )
    protected String name;

    @ApiModelProperty(value = "页面类型(0.首页,1.专题)" )
    protected Integer pageType;

    @ApiModelProperty(value = "专题标签" )
    protected Long tagId;

    @ApiModelProperty(value = "页面描述" )
    protected String description;

    @ApiModelProperty(value = "归属企业" )
    protected Long enterpriseId;

    @ApiModelProperty(value = "标签", hidden = true)
    @JsonIgnore
    protected Tag tag;

    public String getTagName() {
        Tag g = getTag();
        if (g!=null) {
            return g.getName();
        } else {
            return "无";
        }
    }

    public void setTagName(String value) {

    }


}
